<include file="Public/header" />
<title>计划入库单详情</title>
</head>
<style>
	td{width:50px;height:29px;overflow:hidden;word-spacing:nowrap;padding:0 3px;border-top:1px solid #000 !important;border-left:1px solid #000 !important;}
	table{
		table-layout:fixed;
		border:0 !important;
	}
	tr{
		border:0 !important;
	}
	
	.border0{
		border-top:0 !important;
		border-right:0 !important;
		border-left:0 !important;
	}
	.border1{
		border-right:1px solid #000 !important
	}
	.border2{
		border-bottom:1px solid #000 !important
	}
	.border-top{
		border-top:0 !important;
	}
	.border-right{
		border-right:0 !important;
	}
	.border-bottom{
		border-bottom:0 !important;
	}
	.border-left{
		border-left:0 !important;
	}
	.bold{
		font-weight:bold;
	}
	.table-border td {
		border-bottom: 0px solid #ddd;
	}
	@media print {
		.noprint { display: none; }
		#emstable {page-break-after:always;}
		.select{
			border:0px;
		}
		.DivSelect
		{
			position: relative;
			background-color: transparent;
			width:  110px;
			height: 20px;
			overflow: hidden; /*隐藏了小三角，因为宽度为110px,而select宽度为130px*/
		}
	}
</style>

<body>
<div class="pd-20">
	<table class=" table-border table-bordered table-hover " style="border-top:0;">
		<thead  class="border0">
			<tr  class="border0">
				<td scope="col" colspan="11"  class="border0" style='text-align:center;font-size:16px;font-weight:bold;border:0'><{:C('base_config.company_name')}>销售订单</td>
			</tr>
			<tr class="">
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0">打印日期:</td>
				<td class="border0" colspan="2"><{:date('Y-m-d',time())}></td>
				<td class="border0">打印页数:</td>
				<td class="border0">1/1</td>
			</tr>
		</thead>
		<tbody>
			<tr class="">
				<td>单据编号:</td>
				<td colspan="3"><{$detail.order_no}></td>
				<td colspan="3">单据日期：<{$detail.make_add_time|date="Y-m-d",###}></td>
				<td>制单人:</td>
				<td colspan="3"  class="border1"><{$detail.people_make_name.name}></td>
			</tr>
			<tr class="">
				<td>往来单位:</td>
				<td colspan="3"><{$detail.company_name.name}></td>
				<td colspan="3">部门：<{$detail.section_name.name}></td>
				<td>业务员:</td>
				<td colspan="3"  class="border1"><{$detail.people_purchasing_name.name}></td>
			</tr>
			<tr class="">
				<td>收货地址:</td>
				<td colspan="6"><{$detail.province}>/<{$detail.city}>/<{$detail.area}>/<{$detail.user_address}></td>
				<td>运输方式:</td>
				<td colspan="3"  class="border1">
				<if condition="$detail.transport_cate eq 1">
					自提
				<elseif condition="$detail.transport_cate eq 2" />
					第三方物流
				<elseif condition="$detail.transport_cate eq 3" />
					送货
				</if>
				</td>
			</tr>
			<tr class="">
				<td>收款方式:</td>
				<td colspan="3">
					<div class="DivSelect">
						<select class="select" style="width:130px;">
							<option value="1" selected>现金</option>	
							<option value="2">打款</option>	
						</select>
					</div>
				</td>
				<td colspan="7"  class="border1"></td>
			</tr>
			<tr class="text-c">
				<td>出库仓库</td>
				<td colspan="2">商品编码</td>
				<td>商品名称</td>
				<td>主单位</td>
				<td>数量</td>
				<td>含税单价</td>
				<td>销售金额</td>
				<td>辅单位</td>
				<td>辅数量</td>
				<td  class="border1">备注</td>
			</tr>
			<volist name="list" id="vo">
			<tr class="">
				<td><{$vo.warehouse_info.name}></td>
				<td colspan="2"><{$vo.goods_sn}></td>
				<td><{$vo.goods_name}></td>
				<td><{$vo.unit1_name.unit_name}></td>
				<td><{$vo.goods_nums}></td>
				<td><{$vo.goods_price}></td>
				<td><{$vo['goods_nums']*$vo['goods_price']}></td>
				<td><{$vo.unit2_name.unit_name}></td>
				<td><{$vo.second_count}></td>
				<td  class="border1"><{$vo.bz}></td>
			</tr>
			</volist>
			<tr class="">
				<td colspan="3" class="text-c">合计</td>
				<td></td>
				<td></td>
				<td><{$count_goods_nums}></td>
				<td></td>
				<td><{$count_goods_price}></td>
				<td></td>
				<td><{$count_second_count}></td>
				<td  class="border1"></td>
			</tr>
			<tr class="">
				<td colspan="11" class="border1 bold" style="border-bottom:0px;">申请理由:</td>
			</tr>
			<tr class="">
				<td colspan="2" class="border2 bold border-top">经办人:</td>
				<td colspan="2" class="border2 bold border-top border-left">复核人:</td>
				<td colspan="2" class="border2 bold border-top border-left">业务员:</td>
				<td colspan="2" class="border2 bold border-top border-left">有权审批人:</td>
				<td colspan="3" class="border1 border2 border-top border-left"></td>
			</tr>
		</tbody>
	</table>
	<button onclick="window.print()"  class="btn btn-primary radius noprint">打印</button>
<div class="pages">
<{$page}>
</div>
</div>

</body>
</html>